import request from '@/utils/request'

export function listretHead(query) {
  return request({
    url: '/retHead/list',
    method: 'get',
    params: query
  })
}

export function createretHead(data) {
  return request({
    url: '/retHead/create',
    method: 'post',
    data
  })
}

export function readretHead(data) {
  return request({
    url: '/retHead/get/' + data.id,
    method: 'get'
  })
}

export function updateretHead(data) {
  return request({
    url: '/retHead/update',
    method: 'post',
    data
  })
}

export function deleteretHead(data) {
  return request({
    url: '/retHead/delete/' + data.fbillno,
    method: 'delete'
  })
}
